package com.woniuxy.mesboot.service.impl;

import com.woniuxy.mesboot.entity.ProType;
import com.woniuxy.mesboot.mapper.ProTypeMapper;
import com.woniuxy.mesboot.service.ProTypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author : 黑川
 * @version : 1.0
 * @Project : mes-boot
 * @Package : com.woniuxy.mesboot.service.impl
 * @ClassName : .java
 * @createTime : 2023/5/29 17:27
 * @Description :
 */
@Service
public class ProTypeServiceImpl implements ProTypeService {
    @Resource
    private ProTypeMapper typeMapper;
    @Override
    public List<ProType> selectAll() {
        return typeMapper.selectAll();
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return typeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ProType record) {
        return typeMapper.insert(record);
    }

    @Override
    public int insertSelective(ProType record) {
        return typeMapper.insertSelective(record);
    }

    @Override
    public ProType selectByPrimaryKey(Long id) {
        return typeMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ProType record) {
        return typeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ProType record) {
        return typeMapper.updateByPrimaryKey(record);
    }
}
